Clean up memory hotplug functions.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Dec 2009 10:47:21 +0000 (10:47 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Dec 2009 10:47:21 +0000 (10:47 +0000)
commit0cb46aca265d3ff05819358803e4b8332b884a12
tree6518b563be2b0d92f331fc6fe65b599269975e11
parent17b847f9dfd7505709dbaecaf08e52b5c36163db
Clean up memory hotplug functions.

Move the range checking to mem_hotadd_check.
Add more error handling, to restore the node information, unmap iommu
page tables, destroy xen mapping when error happens.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
xen/arch/x86/x86_64/mm.c